<?php /* Smarty version 2.6.13, created on 2009-01-08 18:58:51
         compiled from show_edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'show_edit.tpl', 16, false),array('function', 'html_select_date', 'show_edit.tpl', 60, false),)), $this); ?>
<form action="/own/edit" method="POST">
<div id="actionmessage">
<?php if ($this->_tpl_vars['AgencyError']): ?>
	при заполнении формы были допущены ошибки
<?php endif; ?>
</div>
<input type="hidden" value="<?php echo $this->_tpl_vars['Agency']->getPk(); ?>
">
<table align="center" border="1" cellpadding="5" cellspacing="1">
	<tr>
		<td>Название*:</td>
		<td <?php if ($this->_tpl_vars['AgencyError']['name']): ?>bgcolor="Red"><?php echo $this->_tpl_vars['AgencyError']['name']; ?>
<br><?php else: ?>><?php endif; ?><input type="text" name="m[name]" id="name" style="width:auto" value="<?php echo $this->_tpl_vars['Agency']->name; ?>
"></td>
	</tr>
	<tr>
		<td>Юридическая форма организации*:</td>
		<td>
			<?php echo smarty_function_html_options(array('name' => "m[legalform_id]",'id' => 'legalform_id','options' => $this->_tpl_vars['LegalFormManager']->htmlSelect('name','','validate=1'),'selected' => $this->_tpl_vars['Agency']->legalform_id), $this);?>
<br />
		</td>
	</tr>
	<tr>
		<td>Город/село (населённый пункт)*:</td>
		<td>
			<?php echo smarty_function_html_options(array('name' => "m[city_id]",'id' => 'city_id','options' => $this->_tpl_vars['CityManager']->htmlSelect('name','','validate=1'),'selected' => $this->_tpl_vars['Agency']->city_id), $this);?>
<br />
		</td>
	</tr>
	<tr>
		<td>Почтовый адрес фирмы*:</td>
		<td <?php if ($this->_tpl_vars['AgencyError']['address']): ?>bgcolor="Red"><?php echo $this->_tpl_vars['AgencyError']['address']; ?>
<br><?php else: ?>><?php endif; ?><textarea name="m[address]" id="address" style="width:auto"><?php echo $this->_tpl_vars['Agency']->address; ?>
</textarea></td>
	</tr>
	<tr>
		<td>Юридический адрес фирмы*:</td>
		<td><textarea name="m[legal_address]" id="legal_address"><?php echo $this->_tpl_vars['Agency']->legal_address; ?>
</textarea></td>
	</tr>
	<tr>
		<td>Количество штатных сотрудников*:</td>
		<td><input type="text" name="m[count_officers]" id="count_officers" value="<?php echo $this->_tpl_vars['Agency']->count_officers; ?>
"></td>
	</tr>
	<tr>
		<td>Количество менеджеров по продажам*:</td>
		<td><input type="text" name="m[count_managers]" id="count_managers" value="<?php echo $this->_tpl_vars['Agency']->count_managers; ?>
"></td>
	</tr>
	<tr>
		<td>Количество продаваемых направлений*:</td>
		<td>
			<select name="count_countries">
				<option value="0">Выберите нужное количество
				<option value="1" label="1">1
				<option value="2" label="2">2
				<option value="3" label="3">3
				<option value="4" label="4">4
				<option value="5" label="5">5
			</select>
		</td>
	</tr>
	<tr>
		<td>Номер регистрационного свидетельства*:</td>
		<td><input type="text" name="m[certificate_number]" id="certificate_number" value="<?php echo $this->_tpl_vars['Agency']->certificate_number; ?>
"></td>
	</tr>
	<tr>
		<td>Дата регистрации фирмы *:</td>
		<td><?php echo smarty_function_html_select_date(array('day_extra' => 'style="width:45px"','year_extra' => 'style="width:65px"','month_extra' => 'style="width:100px"','field_order' => 'DMY','start_year' => '-20','field_array' => 'cert','day_value_format' => '%02d','time' => $this->_tpl_vars['Agency']->certificate_date), $this);?>
</td>
	</tr>
	<tr>
		<td>Форма налогообложения*:</td>
		<td>
			<?php echo smarty_function_html_options(array('name' => "m[taxationform_id]",'id' => 'taxationform_id','options' => $this->_tpl_vars['TaxationFormManager']->htmlSelect('name'),'selected' => $this->_tpl_vars['Agency']->taxation_id), $this);?>
<br />
		</td>
	</tr>
	<tr>
		<td>Контактный телефон*:</td>
		<td><input type="text" name="m[phone]" id="phone" value="<?php echo $this->_tpl_vars['Agency']->phone; ?>
"></td>
	</tr>
	<tr>
		<td>Адрес электронной почты*:</td>
		<td><input type="text" name="m[email]" id="email" value="<?php echo $this->_tpl_vars['Agency']->email; ?>
"></td>
	</tr>
	<tr>
		<td>Адрес веб-странички*:</td>
		<td><input type="text" name="m[url]" id="url" value="<?php echo $this->_tpl_vars['Agency']->url; ?>
"></td>
	</tr>
</table>
<input type="submit">
</form>